﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZX.TR.Bussiness;
using ZX.TR.Library;
using ZX.EHR.Library;
using DevExpress.Charts;
using DevExpress.XtraCharts;
using DevExpress.XtraCharts.Web;
using System.Data;
using ZX.Web.UI.Controls;

namespace  ZX.TR.Web
{
    public partial class EssayQuestion : BasePage
    {
        string questionnaireID = "", subjectInfoID = "";
        BTrQuestionnaireSubject bTrQuestionnaireSubject = new BTrQuestionnaireSubject();
        V_TrSubjectInfo v_TrSubjectInfo = new V_TrSubjectInfo();

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                questionnaireID = this.Request.QueryString["questionnaireID"];
                subjectInfoID = this.Request.QueryString["subjectInfoID"];

                if (questionnaireID != "")
                {
                    v_TrSubjectInfo = bTrQuestionnaireSubject.GetSubjectInfoById(subjectInfoID);
                    lbSubjectContent.Text = v_TrSubjectInfo.SubjectContent;
                    rptItem.DataSource = bTrQuestionnaireSubject.GetEssayQuestion(questionnaireID,subjectInfoID);
                    rptItem.DataBind();

                }
            }

        }
    }
}